
<#include "header.ftl">
  <!-- 内容区域 -->
<div class="tpl-content-wrapper">

   <div class="container-fluid am-cf">
                <div class="row">
                     <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <ol class="am-breadcrumb">
						  <li><a href="${Domain}my" class="am-icon-home">首页</a></li>
						  <li><a href="${Domain}my/cure/list">治疗</a></li>
						  <li class="am-active">详情</li>
						  
						</ol>
                    </div>
                  	<#include "../common/return.ftl">
                </div>
</div>
  <div class="row-content am-cf">
  
  

          <div class="row">

                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                 <div class="widget-title  am-fl">
                                   	患者:${patient.name}
                                                                                           性别：<#switch patient.gender>
										           <#case 0> 未知 <#break>
										           <#case 1>男<#break>
										           <#case 2>女<#break>
										           <#default>未知
										 </#switch>
									 年龄：${patient.Age()}
									 身份证：${patient.SimpleNo()}
								</div>
                                
                            </div>
                            <div class="widget-body am-fr">

                                <div class="am-form tpl-form-line-form"   >
   
                                    <div class="am-form-group">
                                        <label  class="am-u-sm-3 am-u-md-3 am-form-label">姓名 </label>
                                        <div class="am-u-sm-8 am-u-md-6">
                                           <div class="tngou-show"> &nbsp; ${patient.name} </div>                                 
                                        </div>
                                        <label  class="am-u-sm-1 am-u-md-3"></label>
                                    </div>
                                    <div class="am-form-group">
                                        <label  class="am-u-sm-3 am-u-md-3 am-form-label">相关科室</label>
                                        <div class="am-u-sm-8 am-u-md-6">
                                        <div class="tngou-show"> &nbsp; 
                                         <#list departments as item>
										  ${item.name} 
							              </#list>	
							              </div>		          
                                        </div>
                                        <label  class="am-u-sm-1 am-u-md-3"></label>
                                    </div>
                                     <div class="am-form-group">
                                        <label  class="am-u-sm-3 am-u-md-3 am-form-label">发病位置</label>
                                        <div class="am-u-sm-8 am-u-md-6">
                                         <div class="tngou-show">&nbsp; 
                                          <#list places as item>
										   ${item.name} 
							              	</#list>	
							              	 </div>		          									
                                        </div>
                                        <label  class="am-u-sm-1 am-u-md-3"></label>
                                    </div>
                                    <div class="am-form-group">
                                        <label  class="am-u-sm-3 am-u-md-3 am-form-label">治疗方式</label>
                                        <div class="am-u-sm-8 am-u-md-6 ">
                                         <div class="tngou-show"> &nbsp; 
                                         <#list treatments as item>
										  ${item.name} 
							              	</#list>	
							              	</div>		          										
                                        </div>
                                        <label  class="am-u-sm-1 am-u-md-3"></label>
                                    </div>
                          		
                          		<div class="am-form-group">
                                        <label  class="am-u-sm-3 am-u-md-3 am-form-label">主管医生</label>
                                        <div class="am-u-sm-8 am-u-md-6">  
                                         <div class="tngou-show"> &nbsp;                                       
											<#list users as item>
										    ${item.name}
							              	</#list>	
							              	</div>									
                                        </div>
                                        <label  class="am-u-sm-1 am-u-md-3"></label>
                                    </div>
                          			
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        
         
        
            
   </div>
</div>        

<script type="text/javascript">
  var loading; 
$(function() {
  
  $('#cure-add').validator({
    onValid: function(validity) {   
      $(validity.field).closest('.am-form-group').find('.am-alert').hide();
    },
    onInValid: function(validity) {
   
      var $field = $(validity.field);
      var $group = $field.closest('.am-form-group');
      var $tpl = $group.find('.tpl-form-input');
      var $alert = $group.find('.am-alert');
      // 使用自定义的提示信息 或 插件内置的提示信息
      var msg = $tpl.data('validationMessage') || this.getValidationMessage(validity);
      if (!$alert.length) {
        $alert = $('<div class="am-alert am-alert-danger"></div>').hide().
          insertAfter($tpl);
      }

      $alert.html(msg).show();
    }
  });
});
  
 
   $('#cure-add').ajaxForm({
	    beforeSubmit: function(a,f,o) {
	        loading=weui.loading('数据加载中...');
	    },
	    success: function(json) {	    	
	    	if(json.status)
	    	{
	    	  	if(loading)loading.hide();
	    		weui.toast(json.msg); 
	    		<#if ask.url??>
	    		location.href="${ask.url}";	
	    		</#if>		
	    	}else
	    	{	
	    		if(loading)loading.hide();
	    	    weui.alert(json.msg);  		 
	    	}
	    }
	});
	</script>
<#include "footer.ftl">